package com.zds.init;

import com.zds.config.SpringIOCConfiger;
import com.zds.config.SpringMVCConfiger;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * @className:AnnotationConfigInitializer
 * @date: 2025/6/10 下午6:08
 * @description:
 */
public class AnnotationConfigInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{SpringIOCConfiger.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{
            SpringMVCConfiger.class
        };
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
